Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: UI setup for feedback component hidden behind feature flag #2632

Merged
merged 10 commits into from
Jan 18, 2024

Conversation

ianjon3s
Copy link
Contributor

@ianjon3s ianjon3s commented Jan 3, 2024

What

  • New UI components built by Ian as per designs and prototype
  • Reorganisation of the components to allow them to be hidden behind a feature flag

Why

  • Useful to split up the PR for comprehensibility

Testing

Screen recording

Copy link

github-actions bot commented Jan 3, 2024

Removed vultr server and associated DNS entries

@jessicamcinchak
Copy link
Member

@ianjon3s ianjon3s force-pushed the ian/feedback-ui-components branch 2 times, most recently from ec69511 to efddec1 Compare January 10, 2024 15:53
@Mike-Heneghan Mike-Heneghan force-pushed the ian/feedback-ui-components branch from 6643b26 to 9e1f2e8 Compare January 16, 2024 09:29
@Mike-Heneghan Mike-Heneghan force-pushed the ian/feedback-ui-components branch from 9e1f2e8 to b67963a Compare January 17, 2024 11:32
Copy link

🤖 Hasura Change Summary compared a subset of table metadata including permissions:

Tracked Tables (3)


CREATE TABLE "public"."feedback_type_enum" ("value" text NOT NULL, "comment" text NOT NULL, PRIMARY KEY ("value") );COMMENT ON TABLE "public"."feedback_type_enum" IS E'Store the different types of feedback we gather from user';

INSERT INTO "public"."feedback_type_enum"("value", "comment") VALUES (E'issue', E' A user reporting an issue with a service');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
INSERT INTO "public"."feedback_type_enum"("value", "comment") VALUES (E'issue', E' A user reporting an issue with a service');
INSERT INTO "public"."feedback_type_enum"("value", "comment") VALUES (E'issue', E'A user reporting an issue with a service');

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made this change on another branch so this comment hasn't been lost 😌

@Mike-Heneghan Mike-Heneghan force-pushed the ian/feedback-ui-components branch from b67963a to 7948267 Compare January 17, 2024 17:00
- Reinstate the feedback fish PhaseBanner
- Move the new feedback banner into it's own component
-  Conditionally render the new UI when featureFlag is present
- Split the new UI into it's own component
- Conditionally render the new UI when the feature flag is enabled
@Mike-Heneghan Mike-Heneghan force-pushed the ian/feedback-ui-components branch from 3d5e146 to 3dfc7d1 Compare January 18, 2024 11:15
@Mike-Heneghan Mike-Heneghan self-assigned this Jan 18, 2024
@Mike-Heneghan Mike-Heneghan changed the title wip: UI setup for feedback component feat: UI setup for feedback component hidden behind feature flag Jan 18, 2024
@Mike-Heneghan Mike-Heneghan marked this pull request as ready for review January 18, 2024 12:05
@Mike-Heneghan Mike-Heneghan requested a review from a team January 18, 2024 12:06
Copy link
Contributor

@DafyddLlyr DafyddLlyr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few very small suggestions but looking great! 👍

@@ -59,6 +62,8 @@ const CloseButton = styled("div")(({ theme }) => ({
color: theme.palette.text.primary,
}));

const isUsingFeatureFlag = () => hasFeatureFlag("SHOW_INTERNAL_FEEDBACK");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we'd save a few renders by just making this a static value?

const isUsingFeatureFlag = hasFeatureFlag("SHOW_INTERNAL_FEEDBACK");

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's an interesting one, I think I just copied the pattern from the other places where a feature flag is used and didn't stop to think about it 😅

I'll experiment with making it static to see whether it's like this for a reason or maybe just causing unnecessary renders.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Experimenting with this it seems the static version is grand, when the flag is toggled it triggers the refresh so it seems to be working as intended.

Fixed: adcb8c2

<Typography variant="body2">
Please do not include any personal or financial information in your
feedback. If you choose to do so we will process your personal data
according to our <Link>privacy policy</Link>.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need to make a note to come back and populate this link. Maybe let's make it visually obvious with <Link href="#">privacy policy (TODO)</Link>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here: aa17f63

@Mike-Heneghan Mike-Heneghan merged commit 68c2e0c into main Jan 18, 2024
12 checks passed
@Mike-Heneghan Mike-Heneghan deleted the ian/feedback-ui-components branch January 18, 2024 14:00
@Mike-Heneghan
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants